
//----------------------------------------------------------------
// Copyright (C) 2009 上海EZCRS
// 版权所有。 
// All rights reserved.

// 文件名：MsgEventBean.cs
// 文件功能描述：消息事件
// 
// 
// 创建标识： kevin  2009-6-5 14:43:15
//
// 修改标识：
// 修改描述：
//----------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Strive.Util.Text;
using Strive.Util.Logging;
using Strive.Core.Validations;
using Strive.Core.Service;
using Strive.Core.Translators;
using Strive.Util.Maths;
using Strive.Reflection;
using Strive.Aspects;
using Strive.DataAccess;
using OTA.Notification.Entity;
using OTA.Notification.Entity.Event;

namespace OTA.Notification.Entity.Event
{
    /// <summary>
    ///消息事件表
    /// [MSG_EVENT]实体类
    ///对应表名:MSG_EVENT
    /// </summary>
    [Serializable]
	[Table(Name = "MSG_EVENT")]
    public class MsgEventBean
    {
        
        #region Private 成员
        private int _msg_event_id=0; 
        private string _app_code=String.Empty; 
        private string _client_tx_seq=String.Empty; 
        private string _sender_account=String.Empty; 
        private string _sender=String.Empty; 
        private string _org_code=String.Empty; 
        private string _msg_type=String.Empty; 
        private string _msg_send_type=String.Empty; 
        private string _receiver_account_type=String.Empty; 
        private int _group=0; 
        private int _priority=0; 
        private string _level=String.Empty; 
        private string _msg_template=String.Empty; 
        private DateTime _msg_send_start_time=new DateTime(1900,1,1); 
        private int _delay=0; 
        private int _delay_type=0; 
        private int _delay_second=0; 
        private DateTime _delay_time=new DateTime(1900,1,1); 
        private int _event_status=0; 
        private string _terminal_flag=String.Empty; 
        private string _terminal_type=String.Empty; 
        private string _terminal_command=String.Empty; 
        private int _msg_repeat_event_id=0; 
        private DateTime _create_time=new DateTime(1900,1,1); 
        private DateTime _last_update_time=new DateTime(1900,1,1); 
        private string _receiver_account=String.Empty; 
        private string _msg_title=String.Empty; 
        private string _msg_content=String.Empty; 
        private string _event_err_code=String.Empty; 
        private string _batchno=String.Empty; 
        private string _msg_ex_properties=String.Empty;   

        #endregion
  
        
        #region Public 成员
   
        /// <summary>
        /// 属性名称：MsgEventId
        /// 属性描述：
        /// 字段信息：[MSG_EVENT_ID],int
        /// </summary>
        [Column(Name="MSG_EVENT_ID"),ID,PK]
		public int MsgEventId
        {
            get { return _msg_event_id; }
            set
            {
            
                {
                    _msg_event_id = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：AppCode
        /// 属性描述：
        /// 字段信息：[APP_CODE],nvarchar
        /// </summary>
        [Column(Name="APP_CODE")]
		public string AppCode
        {
            get { return _app_code; }
            set
            {
            
                if(value==null)return;
                if (_app_code as object == null || !_app_code.Equals(value))
                {
                    _app_code = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：ClientTxSeq
        /// 属性描述：
        /// 字段信息：[CLIENT_TX_SEQ],nvarchar
        /// </summary>
        [Column(Name="CLIENT_TX_SEQ")]
		public string ClientTxSeq
        {
            get { return _client_tx_seq; }
            set
            {
            
                if(value==null)return;
                if (_client_tx_seq as object == null || !_client_tx_seq.Equals(value))
                {
                    _client_tx_seq = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：SenderAccount
        /// 属性描述：
        /// 字段信息：[SENDER_ACCOUNT],nvarchar
        /// </summary>
        [Column(Name="SENDER_ACCOUNT")]
		public string SenderAccount
        {
            get { return _sender_account; }
            set
            {
            
                if(value==null)return;
                if (_sender_account as object == null || !_sender_account.Equals(value))
                {
                    _sender_account = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：Sender
        /// 属性描述：
        /// 字段信息：[SENDER],nvarchar
        /// </summary>
        [Column(Name="SENDER")]
		public string Sender
        {
            get { return _sender; }
            set
            {
            
                if(value==null)return;
                if (_sender as object == null || !_sender.Equals(value))
                {
                    _sender = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：OrgCode
        /// 属性描述：
        /// 字段信息：[ORG_CODE],nvarchar
        /// </summary>
        [Column(Name="ORG_CODE")]
		public string OrgCode
        {
            get { return _org_code; }
            set
            {
            
                if(value==null)return;
                if (_org_code as object == null || !_org_code.Equals(value))
                {
                    _org_code = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：MsgType
        /// 属性描述：
        /// 字段信息：[MSG_TYPE],nvarchar
        /// </summary>
        [Column(Name="MSG_TYPE")]
		public string MsgType
        {
            get { return _msg_type; }
            set
            {
            
                if(value==null)return;
                if (_msg_type as object == null || !_msg_type.Equals(value))
                {
                    _msg_type = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：MsgSendType
        /// 属性描述：
        /// 字段信息：[MSG_SEND_TYPE],nvarchar
        /// </summary>
        [Column(Name="MSG_SEND_TYPE")]
		public string MsgSendType
        {
            get { return _msg_send_type; }
            set
            {
            
                if(value==null)return;
                if (_msg_send_type as object == null || !_msg_send_type.Equals(value))
                {
                    _msg_send_type = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：ReceiverAccountType
        /// 属性描述：
        /// 字段信息：[RECEIVER_ACCOUNT_TYPE],nvarchar
        /// </summary>
        [Column(Name="RECEIVER_ACCOUNT_TYPE")]
		public string ReceiverAccountType
        {
            get { return _receiver_account_type; }
            set
            {
            
                if(value==null)return;
                if (_receiver_account_type as object == null || !_receiver_account_type.Equals(value))
                {
                    _receiver_account_type = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：Group
        /// 属性描述：
        /// 字段信息：[GROUP],int
        /// </summary>
        [Column(Name="GROUP")]
		public int Group
        {
            get { return _group; }
            set
            {
            
                {
                    _group = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：Priority
        /// 属性描述：
        /// 字段信息：[PRIORITY],int
        /// </summary>
        [Column(Name="PRIORITY")]
		public int Priority
        {
            get { return _priority; }
            set
            {
            
                {
                    _priority = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：Level
        /// 属性描述：
        /// 字段信息：[LEVEL],char
        /// </summary>
        [Column(Name="LEVEL")]
		public string Level
        {
            get { return _level; }
            set
            {
            
                if(value==null)return;
                if (_level as object == null || !_level.Equals(value))
                {
                    _level = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：MsgTemplate
        /// 属性描述：
        /// 字段信息：[MSG_TEMPLATE],nvarchar
        /// </summary>
        [Column(Name="MSG_TEMPLATE")]
		public string MsgTemplate
        {
            get { return _msg_template; }
            set
            {
            
                if(value==null)return;
                if (_msg_template as object == null || !_msg_template.Equals(value))
                {
                    _msg_template = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：MsgSendStartTime
        /// 属性描述：
        /// 字段信息：[MSG_SEND_START_TIME],datetime
        /// </summary>
        [Column(Name="MSG_SEND_START_TIME")]
		public DateTime MsgSendStartTime
        {
            get { return _msg_send_start_time; }
            set
            {
            
                {
                    _msg_send_start_time = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：Delay
        /// 属性描述：
        /// 字段信息：[DELAY],int
        /// </summary>
        [Column(Name="DELAY")]
		public int Delay
        {
            get { return _delay; }
            set
            {
            
                {
                    _delay = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：DelayType
        /// 属性描述：
        /// 字段信息：[DELAY_TYPE],int
        /// </summary>
        [Column(Name="DELAY_TYPE")]
		public int DelayType
        {
            get { return _delay_type; }
            set
            {
            
                {
                    _delay_type = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：DelaySecond
        /// 属性描述：
        /// 字段信息：[DELAY_SECOND],int
        /// </summary>
        [Column(Name="DELAY_SECOND")]
		public int DelaySecond
        {
            get { return _delay_second; }
            set
            {
            
                {
                    _delay_second = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：DelayTime
        /// 属性描述：
        /// 字段信息：[DELAY_TIME],datetime
        /// </summary>
        [Column(Name="DELAY_TIME")]
		public DateTime DelayTime
        {
            get { return _delay_time; }
            set
            {
            
                {
                    _delay_time = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：EventStatus
        /// 属性描述：
        /// 字段信息：[EVENT_STATUS],int
        /// </summary>
        [Column(Name="EVENT_STATUS")]
		public int EventStatus
        {
            get { return _event_status; }
            set
            {
            
                {
                    _event_status = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：TerminalFlag
        /// 属性描述：
        /// 字段信息：[TERMINAL_FLAG],char
        /// </summary>
        [Column(Name="TERMINAL_FLAG")]
		public string TerminalFlag
        {
            get { return _terminal_flag; }
            set
            {
            
                if(value==null)return;
                if (_terminal_flag as object == null || !_terminal_flag.Equals(value))
                {
                    _terminal_flag = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：TerminalType
        /// 属性描述：
        /// 字段信息：[TERMINAL_TYPE],nvarchar
        /// </summary>
        [Column(Name="TERMINAL_TYPE")]
		public string TerminalType
        {
            get { return _terminal_type; }
            set
            {
            
                if(value==null)return;
                if (_terminal_type as object == null || !_terminal_type.Equals(value))
                {
                    _terminal_type = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：TerminalCommand
        /// 属性描述：
        /// 字段信息：[TERMINAL_COMMAND],nvarchar
        /// </summary>
        [Column(Name="TERMINAL_COMMAND")]
		public string TerminalCommand
        {
            get { return _terminal_command; }
            set
            {
            
                if(value==null)return;
                if (_terminal_command as object == null || !_terminal_command.Equals(value))
                {
                    _terminal_command = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：MsgRepeatEventId
        /// 属性描述：
        /// 字段信息：[MSG_REPEAT_EVENT_ID],int
        /// </summary>
        [Column(Name="MSG_REPEAT_EVENT_ID")]
		public int MsgRepeatEventId
        {
            get { return _msg_repeat_event_id; }
            set
            {
            
                {
                    _msg_repeat_event_id = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：CreateTime
        /// 属性描述：
        /// 字段信息：[CREATE_TIME],datetime
        /// </summary>
        [Column(Name="CREATE_TIME")]
		public DateTime CreateTime
        {
            get { return _create_time; }
            set
            {
            
                {
                    _create_time = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：LastUpdateTime
        /// 属性描述：
        /// 字段信息：[LAST_UPDATE_TIME],datetime
        /// </summary>
        [Column(Name="LAST_UPDATE_TIME")]
		public DateTime LastUpdateTime
        {
            get { return _last_update_time; }
            set
            {
            
                {
                    _last_update_time = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：ReceiverAccount
        /// 属性描述：
        /// 字段信息：[RECEIVER_ACCOUNT],varchar
        /// </summary>
        [Column(Name="RECEIVER_ACCOUNT")]
		public string ReceiverAccount
        {
            get { return _receiver_account; }
            set
            {
            
                if(value==null)return;
                if (_receiver_account as object == null || !_receiver_account.Equals(value))
                {
                    _receiver_account = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：MsgTitle
        /// 属性描述：
        /// 字段信息：[MSG_TITLE],nvarchar
        /// </summary>
        [Column(Name="MSG_TITLE")]
		public string MsgTitle
        {
            get { return _msg_title; }
            set
            {
            
                if(value==null)return;
                if (_msg_title as object == null || !_msg_title.Equals(value))
                {
                    _msg_title = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：MsgContent
        /// 属性描述：
        /// 字段信息：[MSG_CONTENT],nvarchar
        /// </summary>
        [Column(Name="MSG_CONTENT")]
		public string MsgContent
        {
            get { return _msg_content; }
            set
            {
            
                if(value==null)return;
                if (_msg_content as object == null || !_msg_content.Equals(value))
                {
                    _msg_content = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：EventErrCode
        /// 属性描述：
        /// 字段信息：[EVENT_ERR_CODE],varchar
        /// </summary>
        [Column(Name="EVENT_ERR_CODE")]
		public string EventErrCode
        {
            get { return _event_err_code; }
            set
            {
            
                if(value==null)return;
                if (_event_err_code as object == null || !_event_err_code.Equals(value))
                {
                    _event_err_code = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：Batchno
        /// 属性描述：
        /// 字段信息：[BATCHNO],varchar
        /// </summary>
        [Column(Name="BATCHNO")]
		public string Batchno
        {
            get { return _batchno; }
            set
            {
            
                if(value==null)return;
                if (_batchno as object == null || !_batchno.Equals(value))
                {
                    _batchno = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：MsgExProperties
        /// 属性描述：
        /// 字段信息：[MSG_EX_PROPERTIES],varchar
        /// </summary>
        [Column(Name="MSG_EX_PROPERTIES")]
		public string MsgExProperties
        {
            get { return _msg_ex_properties; }
            set
            {
            
                if(value==null)return;
                if (_msg_ex_properties as object == null || !_msg_ex_properties.Equals(value))
                {
                    _msg_ex_properties = value;
                }
             }
        }
  
        #endregion 
  
    }
}
